import React from 'react';
import {Route} from 'react-keeper';
import LoginFilter from '../../components/loginfilter/index';
import MyInfo from './myinfo';
import Gzfa from './toupiao';
import MyIntroduce from './myinfo/introduce';
import Ywh from './ywh';
import Vote from './vote';
import DoorAuth from './myinfo/auth';
import DoorReAuth from './myinfo/reauth';

const PageHome = (cb) => {
  require.ensure([], () => cb(require('./PageHome.jsx')), 'home')
};

export default {
  route: () => (
    <Route loadComponent={PageHome} path='/home' enterFilter={[LoginFilter]} >
      <MyInfo.route />
      {/*小区改造方案投票*/}
      <Gzfa.route />
      <MyIntroduce.route/>
      <Ywh.route/>
      <Vote.route/>
      <DoorAuth.route/>
      <DoorReAuth.route/>
    </Route>
  )
};
